<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    const json = '{"result":true,"count":2}';
    const obj = JSON.parse(json);

    console.log(obj.count);
    console.log(obj.result);

    // 带第二个参数的情况
    JSON.parse('{"p",5}', function (k, v) {
      if (k === '') return v;
      return v * 2;
    });
  </script>
</html>
